package com.skyline.energy.memcache;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DataObject implements Serializable {
	private static final long serialVersionUID = 6935460305461669470L;
	List<SomeType> types;
	String strValue;
	Long lVal;
	long l;
	Map<String, String> sMap;
	Date date;

	public DataObject() {
		types = new ArrayList<SomeType>();
		types.add(SomeType.TYPE1);
		types.add(SomeType.TYPE2);

		sMap = new HashMap<String, String>();
		sMap.put("123", "123");
		sMap.put("1234", "1234");

		strValue = "1231";
		lVal = new Long(123);
		l = 234L;
		date = new Date();

	}

	@Override
	public String toString() {
		return "list:" + types.toString() + ",map:" + sMap + ",Long:" + lVal + ",long:" + l + ",String:" + strValue
				+ "Date:" + date;
	}
}
